session_start(); //error_reporting(E_ALL); //ini_set("display_errors", 1); $dominio="https://seguroscity.com"; // if ($_GET['iframe']){$_SESSION['iframe']=$_GET['iframe'];} if (!$_SESSION['Navegador']){ $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS"); $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry"); $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); if (($iphone || $android || $palmpre || $ipod || $berry == true) && (!$_SESSION['movil'] || $_SESSION['movil']=="S")) { $_SESSION['Navegador']="V.M: ".$_GET['a']." ".$_SERVER['HTTP_CF_CONNECTING_IP']." ".$_SERVER['HTTP_USER_AGENT']; $_SESSION['movil']="S"; } else { $_SESSION['Navegador']="V.E:".$_SERVER['HTTP_CF_CONNECTING_IP']." ".$_SERVER['HTTP_USER_AGENT']; $_SESSION['movil']="N"; } } function sanitize_output($buffer) { $search = array( '/\>[^\S ]+/s', // strip whitespaces after tags, except space '/[^\S ]+\/' // Remove HTML comments ); $replace = array( '>', '<', '\\1', '' ); $buffer = preg_replace($search, $replace, $buffer); return $buffer; } //$_GET['b']; INCLUDE('conex.php'); $consulta="Select * FROM clientes WHERE (afiliado='".$_GET['a']."' or id='".$_GET['a']."') and (activo='1' OR activo='4') LIMIT 1"; $sql=mysql_query($consulta,$conex); $cliente=mysql_fetch_array($sql); if (!$cliente[0]) { header("HTTP/1.0 404 Not Found"); header('Location: https://www.seguroscity.com/404.php'); exit; } ob_start("sanitize_output"); ?>